<!-- 顶部导航 -->
<div class="header_top">
	<div class="w1200">
		<div class="h_t_l">
			<div class="login_l">
			    <span>欢迎来到<span style="color: red;">京城男人帮</span>!</span>
			    <?php if (!empty($_COOKIE['name'])){ ?>
			    	<a class="a_login" href="{:url('home/user/userindex')}"><?php echo $_COOKIE['name']; ?></a>
				    <span class="line"></span>
				    <a class="" href="{:url('home/user/loginOut')}">[退出]</a>
			    <?php }else{ ?>
				    <a class="a_login" href="{:url('home/user/login')}">[用户登录]</a>
				    <span class="line"></span>
				    <a class="" href="{:url('home/user/register')}">[用户注册]</a>
			    <?php } ?>
			</div>
		</div>
		<div class="h_t_r">
			<ul>
				<li>
					<a href="https://m.kuaidi100.com/" target="_blank">快递查询</a>
					<span class="line"></span>
				</li>
				<li>
					<a href="{:url('user/usersub')}" id="userIndex">个人中心</a>
					<span class="line"></span>
				</li>
				<li>
					<i class="tel_icon"></i>
					13120039119
					<span class="line"></span>
				</li>
				<li>
					<a href="{:url('home/user/register')}">商家入驻</a>
					<!-- <div class="down_load">
                        <div class="down_border">
                            <b class="icon_top"></b>
                            <img style="" src="__PUBLIC__/home/image/down_load_20160411.png">
                            <p>男人生活 京城男人帮</p>
                        </div>
                    </div> -->
					<span class="line"></span>
				</li>
				<!-- <li class="cus_c_box">
					<a href="">客服中心</a>
					<div class="cus_center">
						
                        <a href="">帮助中心</a>
                        <a href="">会员反馈</a>
                    </div>
				</li> -->
			</ul>
		</div>
	</div>
</div>
<script src="__PUBLIC__/home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
<!-- 顶部导航end -->
<script>
	$(document).on("click","#userIndex",function(){
		var name = $.cookie("name");
		if(name){
			window.location.href = "{:url('home/user/userindex')}"
		}else{
			var bool = confirm("您还未登陆，是否去登录");
			if(bool==true){
				window.location.href = "{:url('home/user/login')}"
			}
			return;
		}
	})
</script>